package cn.org.timespace.easyframe.model.permission;

import java.util.HashSet;
import java.util.Set;

/**
 * EfUser entity. @author MyEclipse Persistence Tools
 */

public class EfUser implements java.io.Serializable {

	// Fields

	private String userId;
	private EfOrg efOrg;
	private String userAccount;
	private String userPassword;
	private String userName;
	private String dicUserSex;
	private String userMobile;
	private String dicUserPosition;
	private String userPhotoUrl;
	private String dicUserType;
	private String dicUserIsValid;
	private String validReason;
	private Set efUserRoles = new HashSet(0);

	private String compCode;//厂家编码
	private String compName;//厂家名称
	private String businessLicense;
//	private String coderandom;//厂家随机码
	// Constructors

	/** default constructor */
	public EfUser() {
	}

	/** minimal constructor */
	public EfUser(String userAccount, String userPassword, String userName,
			String dicUserIsValid) {
		this.userAccount = userAccount;
		this.userPassword = userPassword;
		this.userName = userName;
		this.dicUserIsValid = dicUserIsValid;
	}

	/** full constructor */
	public EfUser(EfOrg efOrg, String userAccount, String userPassword,
			String userName, String dicUserSex, String userMobile,
			String dicUserPosition, String userPhotoUrl, String dicUserType,
			String dicUserIsValid, String validReason, Set efUserRoles) {
		this.efOrg = efOrg;
		this.userAccount = userAccount;
		this.userPassword = userPassword;
		this.userName = userName;
		this.dicUserSex = dicUserSex;
		this.userMobile = userMobile;
		this.dicUserPosition = dicUserPosition;
		this.userPhotoUrl = userPhotoUrl;
		this.dicUserType = dicUserType;
		this.dicUserIsValid = dicUserIsValid;
		this.validReason = validReason;
		this.efUserRoles = efUserRoles;
	}

	// Property accessors

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public EfOrg getEfOrg() {
		return this.efOrg;
	}

	public void setEfOrg(EfOrg efOrg) {
		this.efOrg = efOrg;
	}

	public String getUserAccount() {
		return this.userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDicUserSex() {
		return this.dicUserSex;
	}

	public void setDicUserSex(String dicUserSex) {
		this.dicUserSex = dicUserSex;
	}

	public String getUserMobile() {
		return this.userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public String getDicUserPosition() {
		return this.dicUserPosition;
	}

	public void setDicUserPosition(String dicUserPosition) {
		this.dicUserPosition = dicUserPosition;
	}

	public String getUserPhotoUrl() {
		return this.userPhotoUrl;
	}

	public void setUserPhotoUrl(String userPhotoUrl) {
		this.userPhotoUrl = userPhotoUrl;
	}

	public String getDicUserType() {
		return this.dicUserType;
	}

	public void setDicUserType(String dicUserType) {
		this.dicUserType = dicUserType;
	}

	public String getDicUserIsValid() {
		return this.dicUserIsValid;
	}

	public void setDicUserIsValid(String dicUserIsValid) {
		this.dicUserIsValid = dicUserIsValid;
	}

	public String getValidReason() {
		return this.validReason;
	}

	public void setValidReason(String validReason) {
		this.validReason = validReason;
	}

	public Set getEfUserRoles() {
		return this.efUserRoles;
	}

	public void setEfUserRoles(Set efUserRoles) {
		this.efUserRoles = efUserRoles;
	}

	public String getCompCode() {
		return compCode;
	}

	public void setCompCode(String compCode) {
		this.compCode = compCode;
	}

	public String getCompName() {
		return compName;
	}

	public void setCompName(String compName) {
		this.compName = compName;
	}

	public String getBusinessLicense() {
		return businessLicense;
	}

	public void setBusinessLicense(String businessLicense) {
		this.businessLicense = businessLicense;
	}


//	public String getCoderandom() {
//		return coderandom;
//	}
//
//	public void setCoderandom(String coderandom) {
//		this.coderandom = coderandom;
//	}

}